package com.demo.springcloud.controller.impl;

import com.demo.springcloud.entity.R;
import com.demo.springcloud.service.FeignOrderService;
import org.springframework.stereotype.Component;

/**
 * @author hxg
 * @version 1.0
 * @date 2021/12/31 11:23
 */
@Component
public class FeignOrderServiceImpl implements FeignOrderService {
    @Override
    public R get(Long id) {
        return new R(404,"FeignOrderServiceImpl fallback");
    }

    @Override
    public R timeoutTest() {
        return new R(404,"FeignOrderServiceImpl fallback");
    }

    @Override
    public String paymentFail(Long id) {
        return "FeignOrderServiceImplfallback"+id;
    }
}
